package com.lb.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * 功能描述: 用于扫描带有@ServerEndpoint的注解成为websocket
 * 如果你使用外置的tomcat就不需要该配置文件<br>
 * @Author: Edward
 * @Date: 2021/5/26 9:00
 */
@Configuration
public class WebSocketStompConfig {
    @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }
}